package com.baizhi.cmfz.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Consumer  implements Serializable {
    private Integer userId;//用户id
    private String userTelPhone;//用户手机号
    private String userPassword;//用户密码
    private String userImage;//用户头像
    private String userNickName;//法名
    private String userName;//姓名
    private String userSex;//性别
    private String userAutograph;//个性签名
    private String userProvince;//省份
    private  String userCity;//市级
    private  Guru guru;//上师
    private  Integer userStatus;//用户状态
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userCreateDate;//用户注册时间

    private  Integer guruId;

    @Override
    public String toString() {
        return "Consumer{" +
                "userId=" + userId +
                ", userTelPhone='" + userTelPhone + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userImage='" + userImage + '\'' +
                ", userNickName='" + userNickName + '\'' +
                ", userName='" + userName + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userAutograph='" + userAutograph + '\'' +
                ", userProvince='" + userProvince + '\'' +
                ", userCity='" + userCity + '\'' +
                ", guru=" + guru +
                ", userStatus=" + userStatus +
                ", userCreateDate=" + userCreateDate +
                ", guruId=" + guruId +
                '}';
    }

    public Integer getGuruId() {
        return guruId;
    }

    public void setGuruId(Integer guruId) {
        this.guruId = guruId;
    }

    public Consumer(Integer userId, String userTelphone, String userPassword, String userImage, String userNickName, String userName, String userSex, String userAutograph, String userProvince, String userCity, Guru guru, Integer userStatus, Date userCreateDate) {
        this.userId = userId;
        this.userPassword = userPassword;
        this.userImage = userImage;
        this.userNickName = userNickName;
        this.userName = userName;
        this.userSex = userSex;
        this.userAutograph = userAutograph;
        this.userProvince = userProvince;
        this.userCity = userCity;
        this.guru = guru;
        this.userStatus = userStatus;
        this.userCreateDate = userCreateDate;
    }

    public Consumer() {
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserTelPhone() {
        return userTelPhone;
    }

    public void setUserTelPhone(String userTelPhone) {
        this.userTelPhone = userTelPhone;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserAutograph() {
        return userAutograph;
    }

    public void setUserAutograph(String userAutograph) {
        this.userAutograph = userAutograph;
    }

    public String getUserProvince() {
        return userProvince;
    }

    public void setUserProvince(String userProvince) {
        this.userProvince = userProvince;
    }

    public String getUserCity() {
        return userCity;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public Guru getGuru() {
        return guru;
    }

    public void setGuru(Guru guru) {
        this.guru = guru;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Date getUserCreateDate() {
        return userCreateDate;
    }

    public void setUserCreateDate(Date userCreateDate) {
        this.userCreateDate = userCreateDate;
    }
}
